﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace update_command
{
    class Program
    {
        static void Main(string[] args)
        {
            SqlConnection conn = new SqlConnection();
            conn.ConnectionString = "Data Source=(local);Initial Catalog=sale; User Id=sa; Password=sa";
            conn.Open();
            SqlCommand cmd = new SqlCommand("update customers set Name= 'Nguyen Van Z' where id = 5", conn);
            cmd.ExecuteNonQuery();
            conn.Close();
        }

    }
}

